python-xrandr contains bindings for the RandR extension of X.
